<div class="container-fluid">

	<div class="row-fluid">
	<div class="span12">
    <div class="panel panel-inverse">
      <div class="panel-heading">
        <h3 class="panel-title">查询条件</h3>
      </div>
      <div class="panel-body" id="query_con">
        <div class="form-inline" role="form">
        <div class="form-group">
          <input type="text" ng-model="q.genName" class="form-control" placeholder="输入名称">
        </div>
        
          <div class="form-group">
           <button class="btn btn-primary" type="button" ng-click="loadData();">查询</button>
          </div>
           </div>
      </div>
      <div class="panel-footer">
        <button type="button" class="btn btn-success" data-toggle="modal" ng-click="showAddModal();" >新建</button>
      </div>
      </div>
   </div>
  </div>

	<div class="row-fluid">
		<div class="span12">

			<div class="panel panel-inverse">
                <div class="panel-heading">
                    <div class="panel-heading-btn">
                        <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
                    </div>
                    <h4 class="panel-title">主键管理</h4>
                </div>
                <div class="panel-body" >
                    
                    <p ng-show="easyNgPagination.options.totalCount==0">暂无结果</p>
                    <div ng-hide="easyNgPagination.options.totalCount==0" class="dataTables_wrapper form-inline dt-bootstrap no-footer">

                      
                      
                      
                       <div class="row">
                       
                     <!--    <div class="col-sm-12">
                           <div  class="dataTables_filter">
                           <label>Search:<input class="form-control input-sm" placeholder="" aria-controls="data-table" type="search"></label>
                           </div>
                        </div> -->
                        
                        </div>
                        
                        <div class="row">
                        
                        <div class="col-sm-12">
                        
                        <table  class="table table-striped table-bordered dataTable no-footer dtr-inline" role="grid" aria-describedby="data-table_info">
                        <thead>
                            <tr role="row">
                             <th rowspan="1" colspan="1"  >ID</th>
                             <th rowspan="1" colspan="1"  >名称</th>
                             <th rowspan="1" colspan="1"  >下一个值</th>
                             <th rowspan="1" colspan="1"  >备注</th>
                             <th rowspan="1" colspan="1"  >创建时间</th>
                             <th rowspan="1" colspan="1"  >操作</th>
                            </tr>
                        </thead>
                        <tbody>
                      
                            <tr ng-class="{odd:($index%2)==0,even:($index%2)!=0}" ng-repeat="item in items track by $index"  class="gradeA" role="row">
                                <td class="sorting_1">{{item.id}}</td>
                                <td>{{item.genName}}</td>
                                <td>{{item.genValue}}</td>
                                <td>{{item.memo}}</td>
                                <td>{{item.createTime}}</td>
                                <td>
                                <button type="button"  class="btn btn-primary btn-xs m-r-5" ng-click="showEditModal(item);">编辑</button>
                               	<button type="button"  class="btn btn-danger btn-xs m-r-5"  ng-click="doDelete(item);">删除</button>
                             
                                </td>
                            </tr>
                            
                            </tbody>
                    </table>
                    </div>
                    </div>
                    <easy-ng-pagination></easy-ng-pagination>

                    </div>
                </div>
            </div>
			
   		</div>
	</div>
</div>

<div class="modal fade" role="dialog" id="addModal" aria-labelledby="gridSystemModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" >新建</h4>
      </div>
      <div class="modal-body">
        <div class="container-fluid">
          <div class="row">
             <div class="col-md-12 input-group">
             <span class="input-group-addon" id="sizing-addon1">主键名称</span>
             <input type="text" ng-model="entity.genName" class="form-control" placeholder="主键名称" aria-describedby="sizing-addon2" >
             </div>
          </div>
          <br>
           <div class="row">
             <div class="col-md-12 input-group">
             <span class="input-group-addon" id="sizing-addon1">下一个值</span>
             <input type="text" ng-model="entity.genValue" class="form-control" placeholder="下一个值" aria-describedby="sizing-addon2" data-toggle="popover" data-placement="top" data-content="请填写正整数">
             </div>
          </div> 
           <br>
           <div class="row">
             <div class="col-md-12 input-group">
             <span class="input-group-addon" id="sizing-addon1">备注</span>
             <input type="text"  ng-model="entity.memo" class="form-control" placeholder="备注" aria-describedby="sizing-addon2"   >
             </div>
          </div>              
         </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary" ng-click="save(entity);">保存</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<div class="modal fade" role="dialog" id="editModal" aria-labelledby="gridSystemModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" >编辑</h4>
      </div>
      <div class="modal-body">
        <div class="container-fluid">
        <div class="row">
             
             <div class="col-md-12 input-group">
          
             <span class="input-group-addon" id="sizing-addon1">主键名称</span>
             <input type="text" ng-model="editEntity.genName" class="form-control" placeholder="主键名称" aria-describedby="sizing-addon2" >
             </div>
          </div>
          <br>
           <div class="row">
             <div class="col-md-12 input-group">
             <span class="input-group-addon" id="sizing-addon1">下一个值</span>
             <input type="text" ng-model="editEntity.genValue" class="form-control" placeholder="下一个值" aria-describedby="sizing-addon2" data-toggle="popover" data-placement="top" data-content="请填写正整数">
             </div>
          </div> 
           <br>
           <div class="row">
             <div class="col-md-12 input-group">
             <span class="input-group-addon" id="sizing-addon1">备注</span>
             <input type="text"  ng-model="editEntity.memo" class="form-control" placeholder="备注" aria-describedby="sizing-addon2"   >
             </div>
          </div>         
          
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary" ng-click="update(editEntity);" >保存</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

 